<%--
  Created by IntelliJ IDEA.
  User: WeaponLin
  Date: 2015/11/23
  Time: 20:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/table.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/app.css"/>

<div id="menubar">
    <img src="<%=path%>/images/left.png" style="margin-top:auto;margin-bottom:auto;width:15px; height:15px">读者信息
</div>
<s:if test="#session.loginState == 1">
    <table class="default" width="90%" style="margin-top:20px;padding-left: 20px">
        <col width="8%">
        <col width="8%">
        <col width="5%">
        <col width="8%">
        <col width="8%">
        <col width="10%">
        <col width="5%">
        <col width="10%">
        <col width="5%">
        <col width="5%">
        <col width="5%">
        <col width="8%">
        <col width="5%">
        <tr class="title">
            <td style="text-align:center">读者编号</td>
            <td style="text-align:center">姓&nbsp;&nbsp;&nbsp;名</td>
            <td style="text-align:center">性&nbsp;&nbsp;&nbsp;别</td>
            <td style="text-align:center">出生日期</td>
            <td style="text-align:center">电&nbsp;&nbsp;&nbsp;话</td>
            <td style="text-align:center">手&nbsp;&nbsp;&nbsp;机</td>
            <td style="text-align:center">证件类型</td>
            <td style="text-align:center">证件号码</td>
            <td style="text-align:center">会员级别</td>
            <td style="text-align:center">可借数量</td>
            <td style="text-align:center">可借天数</td>
            <td style="text-align:center">注册时间</td>
            <td style="text-align:center">操作</td>
        </tr>

        <tr class="list">
            <td style="text-align:center"><s:property value="#session.reader.readerid"/></td>

            <td style="text-align:center"><s:property value="#session.reader.readername"/></td>

            <td style="text-align:center"><s:property value="#session.reader.sex"/></td>

            <td style="text-align:center"><s:date name="#session.reader.birthday" format="yyyy-MM-dd"/></td>

            <td style="text-align:center"><s:property value="#session.reader.phone"/></td>

            <td style="text-align:center"><s:property value="#session.reader.mobile"/></td>

            <td style="text-align:center"><s:property value="#session.reader.cardname"/></td>

            <td style="text-align:center"><s:property value="#session.reader.cardid"/></td>

            <td style="text-align:center"><s:property value="#session.reader.memberLevel.level"/></td>

            <td style="text-align:center"><s:property value="#session.reader.memberLevel.lendnumbers"/></td>

            <td style="text-align:center"><s:property value="#session.reader.memberLevel.lenddays"/></td>

            <td style="text-align:center"><s:date name="#session.reader.registerday" format="yyyy-MM-dd"/></td>

            <td style="text-align:center"><a href="<%=path%>/reader/ReaderAction_preUpdate.action?readerid=<s:property
                            value="#session.reader.readerid"/>">修改</a></td>
        </tr>
    </table>
</s:if>

<s:else>
    <table width="100%" style="margin-top:50px;">
        <tr>
            <td>
                <h2 style="text-align: center">请使用读者账号登录！</h2>
            </td>
        </tr>
    </table>
</s:else>
</html>
